var kue = require('kue');
var express = require('express');
var jobs = kue.createQueue();

// create jobs (split between 2 js files (creators and workers))

jobs.process('facebook', 3, function(job, done) {
  console.log('process facebook job.')
});

jobs.process('linkedin', 3, function(job, done) {
  console.log('process linkedin job.')
});

jobs.process('twitter', 3, function(job, done) {
  console.log('process twitter job.')
});

kue.app.listen(3000);
console.log('UI Started on port 3000');


// create simple api to submit jobs.